package com.zyf.pattern.decorator.passport;

import com.zyf.pattern.decorator.passport.old.SigninService;
import com.zyf.pattern.decorator.passport.upgrede.ISigninForThirdService;
import com.zyf.pattern.decorator.passport.upgrede.SigninForThirdService;

/**
 * create by yifeng
 */
public class SiginTest {
    public static void main(String[] args) {

        // 原来的功能依旧对外开放，依旧保留，新的功能同样可以使用

        ISigninForThirdService iService = new SigninForThirdService(new SigninService());
        iService.loginForQQ("xxxs");


        /*


         */


    }
}
